﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Controls_SlideImageControl"
    CodeBehind="SlideImageControl.ascx.cs" %>
<link href="/Javascripts/Slide/jquery.ad-gallery.css" rel="stylesheet" type="text/css" />
<script src="/Javascripts/Slide/jquery.ad-gallery.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        //    $('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
        //    $('img.image1').data('ad-title', 'Title through $.data');
        //    $('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
        //    $('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
        var galleries = $('.ad-gallery').adGallery();
        $('#switch-effect').change(
      function () {
          galleries[0].settings.effect = $(this).val();
          return false;
      }
    );
        $('#toggle-slideshow').click(
      function () {
          galleries[0].slideshow.toggle();
          return false;
      }
    );
        $('#toggle-description').click(
      function () {
          if (!galleries[0].settings.description_wrapper) {
              galleries[0].settings.description_wrapper = $('#descriptions');
          } else {
              galleries[0].settings.description_wrapper = false;
          }
          return false;
      }
    );
    });
</script>
<div id="gallery" class="ad-gallery">
    <div class="ad-image-wrapper">
    </div>
    <!--<div class="ad-controls">
      </div>-->
    <div class="ad-nav">
        <div class="ad-thumbs">
            <asp:Repeater ID="rpCompanyImagess" runat="server">
                <HeaderTemplate>
                    <ul class="ad-thumb-list">
                </HeaderTemplate>
                <ItemTemplate>
                    <li><a href='/ImageDatas/CompanyImages/<%#Eval("HinhAnhUrl") %>'>
                        <img height="66px" width="100px" src='/ImageDatas/CompanyImages/<%#Eval("HinhAnhUrl") %>'
                            class="image0" />
                    </a></li>
                </ItemTemplate>
            </asp:Repeater>
            <%--<ul class="ad-thumb-list">
               
                <li><a href="/ImageDatas/CompanyImages/634589353068437500.jpg">
                    <img height="66px" width="100px" src="/ImageDatas/CompanyImages/634589353068437500.jpg"
                        class="image0">
                </a></li>
                <li><a href="/ImageDatas/CompanyImages/634589353068437500.jpg">
                    <img height="66px" width="100px" src="/ImageDatas/CompanyImages/634589353068437500.jpg"
                        class="image0">
                </a></li>
                <li><a href="/ImageDatas/CompanyImages/634589353068437500.jpg">
                    <img height="66px" width="100px" src="/ImageDatas/CompanyImages/634589353068437500.jpg"
                        class="image0">
                </a></li>
                <li><a href="/ImageDatas/CompanyImages/634589353068437500.jpg">
                    <img height="66px" width="100px" src="/ImageDatas/CompanyImages/634589353068437500.jpg"
                        class="image0">
                </a></li>
                <li><a href="/ImageDatas/CompanyImages/634589353068437500.jpg">
                    <img height="66px" width="100px" src="/ImageDatas/CompanyImages/634589353068437500.jpg"
                        class="image0">
                </a></li>
            </ul>--%>
        </div>
    </div>
</div>
